#ifndef TCP4_H
#define TCP4_H

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <iostream>
#include <string.h>
#include <arpa/inet.h>
#include <string>
#include "socket.h"
#include <unistd.h>

class TCP4 : public Socket {

 public:
	
  TCP4();

  TCP4(int sock);

  virtual int Listen();

  virtual Socket* Accept();

  virtual int Connect(char* address, int port);

  virtual int Receive(void* buffer, int length);
  
  virtual int Send(const void* buffer, int length);

 private:
 
  static const int BACK_LOG_NUM = 100;

};

#endif
